package com.gaoyi.basemodule.baseRepos;

import com.gaoyi.basemodule.basedao.BaseDao;
import com.gaoyi.basemodule.cache.CacheDatabase;

public abstract class BaseCacheRepository<T, D extends BaseDao<T>> {
    protected final D mDao;
    protected final CacheDatabase mDatabase;

    protected abstract D getDao();

    public BaseCacheRepository() {
        mDatabase = CacheDatabase.getDatabase();
        mDao = getDao();
    }
}
